package com.yanqu.road.entity.log.cross.apprentice;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_c_log_apprentice_level", autoSave = true, dataUpload = true, eventName = "attos_upgrade", uploadCk = true, desc = "爱徒养成-升级日志", isCross = true)
public class LogCrossApprenticeLevel extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "之前的学业评级", dataAttribute = "attos_beflv")
    private int oldLevel;

    @FieldTypeAnnotation(desc = "当前学业评级", dataAttribute = "attos_level")
    private int level;

    @FieldTypeAnnotation(desc = "当前天资数据", dataAttribute = "attos_talent")
    private String talents;

    public LogCrossApprenticeLevel(int activityId, long userId, int oldLevel, int level, String talents) {
        this.activityId = activityId;
        this.userId = userId;
        this.oldLevel = oldLevel;
        this.level = level;
        this.talents = talents;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getTalents() {
        return talents;
    }

    public void setTalents(String talents) {
        this.talents = talents;
    }

    public int getOldLevel() {
        return oldLevel;
    }

    public void setOldLevel(int oldLevel) {
        this.oldLevel = oldLevel;
    }
}
